<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	<span class="color_red">*</span>服务内容及收费标准

</div>
<table id="tblServiceContents" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="40%">服务内容</th>
			<th class="TblHead" align="center" width="15%">对外收费标准</th>
			<th class="TblHead" align="center" width="15%">优惠收费标准</th>
			<th class="TblHead" align="center" width="20%">备注</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio" class="radiobutton" name="selServiceContents">
			</td>
			<td align="center"><span name="servicecontents|servicecontent[0]@seq_no">[index]</span>
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|content" class="input_text required"
				maxlength=100 label="服务内容" value="" />
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|foreign_fee" class="input_text required"
				maxlength=100 label="对外收费标准" value="" />
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|preferential_fee" class="input_text required"
				maxlength=100 label="优惠收费标准" value="" />
			</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
				name="servicecontents|servicecontent[0]|user_desc" class="input_text required"
				maxlength=100 label="备注" value="" />
			</td>
		</tr>


		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/servicecontents/servicecontent" var="servicecontent">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><input type="radio" class="radiobutton"
					name="selServiceContents">
				</td>
				<td align="center"><span
					name="servicecontents/servicecontent[${flag}${index}]@seq_no">${index+1}</span></td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/content"
					class="input_text required" maxlength=100 label="服务内容"
					value="<x:out select="$servicecontent/content" />" />
				</td>
			<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/foreign_fee"
					class="input_text required" maxlength=100 label="对外收费标准"
					value="<x:out select="$servicecontent/foreign_fee" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/preferential_fee"
					class="input_text required" maxlength=100 label="优惠收费标准"
					value="<x:out select="$servicecontent/preferential_fee" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="servicecontents/servicecontent[${flag}${index}]/user_desc"
					class="input_text required" maxlength=100 label="备注"
					value="<x:out select="$servicecontent/user_desc" />" />
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		
	</tbody>
</table>
<br>

<table width="98%" align="center">
	<tr>
		<td><input class="button" name="cmdAddbefore" type=button
			value="添加"
			onclick="addNewRow('tblServiceContents');try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev"
			type=button value="上移"
			onclick="movePrev('tblServiceContents','selServiceContents')"> <input
			class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblServiceContents','selServiceContents')"> <input
			class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblServiceContents','公共服务内容及收费标准')"></td>
	</tr>
</table>

<br>
<div class="t_bar">
	<span class="color_red">*</span>服务对象名单

</div>
<table id="tblServiceObjects" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="15%">服务对象名称</th>
			<th class="TblHead" align="center" width="15%">主要产品</th>
			<th class="TblHead" align="center" width="15%">主要服务内容</th>
			<th class="TblHead" align="center" width="10%">上年度服务<br/>次数</th>
			<th class="TblHead" align="center" width="10%">联系人</th>
			<th class="TblHead" align="center" width="10%">联系电话</th>
			<th class="TblHead" align="center" width="15%">备注</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio" class="radiobutton" name="selServiceObjects">
			</td>
			<td align="center"><span name="serviceobjects|serviceobject[0]@seq_no">[index]</span>
			</td>
			<td style="text-align: center;"><input type="text"
				name="serviceobjects|serviceobject[0]|serviceobject_name" style="width:80%" class="input_text required"
				maxlength=100 label="服务对象名称" value="" />
			</td>
			
			<td style="text-align: center;"><input type="text"
				name="serviceobjects|serviceobject[0]|serviceobject_product" style="width:80%" class="input_text required"
				maxlength=100 label="主要产品" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="serviceobjects|serviceobject[0]|serviceobject_content" style="width:80%" class="input_text required"
				maxlength=100 label="主要服务内容" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="serviceobjects|serviceobject[0]|serviceobject_times" onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%" class="input_text required"
				maxlength=100 label="上年度服务次数" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="serviceobjects|serviceobject[0]|serviceobject_contact_name" style="width:80%" class="input_text required"
				maxlength=100 label="联系人" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="serviceobjects|serviceobject[0]|serviceobject_contact_tel" style="width:80%" class="input_text required"
				maxlength=100 label="联系电话" value="" />
			</td>
			<td style="text-align: center;">
		         <input name="serviceobjects|serviceobject[0]|serviceobject_base_name"  class="input_text required" label="备注" value=""/>
			</td>
		</tr>


		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/serviceobjects/serviceobject" var="serviceobject">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><input type="radio" class="radiobutton"
					name="selServiceObjects">
				</td>
				<td align="center"><span
					name="serviceobjects/serviceobject[${flag}${index}]@seq_no">${index+1}</span></td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="serviceobjects/serviceobject[${flag}${index}]/serviceobject_name"
					class="input_text required" maxlength=100 label="服务对象名称"
					value="<x:out select="$serviceobject/serviceobject_name" />" />
				</td>
			   
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="serviceobjects/serviceobject[${flag}${index}]/serviceobject_product"
					class="input_text required" maxlength=100 label="主要产品"
					value="<x:out select="$serviceobject/serviceobject_product" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="serviceobjects/serviceobject[${flag}${index}]/serviceobject_content"
					class="input_text required" maxlength=100 label="主要服务内容"
					value="<x:out select="$serviceobject/serviceobject_content" />" />
				</td>
				<td style="text-align: center;"><input type="text"
					name="serviceobjects/serviceobject[${flag}${index}]/serviceobject_times" onfocus="InitInput.setNumber(this,7,0,0)"   style="text-align:right;width:80%"
					class="input_text required" maxlength=100 label="上年度服务次数"
					value="<x:out select="$serviceobject/serviceobject_times" />" />
				</td>
				<td style="text-align: center;"><input type="text"  style="width:80%"
					name="serviceobjects/serviceobject[${flag}${index}]/serviceobject_contact_name"
					class="input_text required" maxlength=100 label="联系人"
					value="<x:out select="$serviceobject/serviceobject_contact_name" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="serviceobjects/serviceobject[${flag}${index}]/serviceobject_contact_tel"
					class="input_text required" maxlength=100 label="联系电话"
					value="<x:out select="$serviceobject/serviceobject_contact_tel" />" />
				</td>
				 <td style="text-align: center;">
			            <input name="serviceobjects/serviceobject[${flag}${index}]/serviceobject_base_name" class="input_text required" label="备注" value="<x:out select="$serviceobject/serviceobject_base_name" />"/>
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		
	</tbody>
</table>
<br>

<table width="98%" align="center">
	<tr>
		<td><input class="button" name="cmdAddbefore" type=button
			value="添加" onclick="addNewRow('tblServiceObjects');try{topObjectFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev"
			type=button value="上移"
			onclick="movePrev('tblServiceObjects','selServiceObjects')"> <input
			class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblServiceObjects','selServiceObjects')"> <input
			class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblServiceObjects','公共服务对象名单')"></td>
	</tr>
</table>

 <br>
<div class="t_bar">
	<span class="color_red">*</span>服务成功案例表

</div>
<table id="tblCases" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="20%">服务企业名称</th>
			<th class="TblHead" align="center" width="20%">项目名称</th>
			<th class="TblHead" align="center" width="10%">联系人姓名</th>
			<th class="TblHead" align="center" width="10%">联系人电话</th>
			<th class="TblHead" align="center" width="20%">服务内容</th>
			<th class="TblHead" align="center" width="10%">服务时间</th>
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio" class="radiobutton" name="selCases">
			</td>
			<td align="center"><span name="cases|case[0]@seq_no">[index]</span>
			</td>
			<td style="text-align: center;"><input type="text"
				name="cases|case[0]|case_name" style="width:80%" class="input_text required"
				maxlength=100 label="服务企业名称" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="cases|case[0]|case_ctitle" style="width:80%" class="input_text required"
				maxlength=100 label="项目名称" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="cases|case[0]|case_contact_name" style="width:80%" class="input_text required"
				maxlength=100 label="联系人姓名" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="cases|case[0]|case_contact_tel" style="width:80%" class="input_text required"
				maxlength=100 label="联系人电话" value="" />
			</td>
			<td style="text-align: center;"><input type="text"
				name="cases|case[0]|case_content" style="width:80%" class="input_text required"
				maxlength=100 label="服务内容" value="" />
			</td>
			<td align="center" nowrap><input  id="case_start_date_[0]" name="cases|case[0]|start_date" label="服务时间" value="" class=" required input_text date " style="width:55px" /></td>
			
		</tr>


		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/cases/case" var="case">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><input type="radio" class="radiobutton"
					name="selCases">
				</td>
				<td align="center"><span
					name="cases/case[${flag}${index}]@seq_no">${index+1}</span></td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="cases/case[${flag}${index}]/case_name"
					class="input_text required" maxlength=100 label="服务对象名称"
					value="<x:out select="$case/case_name" />" />
				</td>
			   
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="cases/case[${flag}${index}]/case_ctitle"
					class="input_text required" maxlength=100 label="项目名称"
					value="<x:out select="$case/case_ctitle" />" />
				</td>
				<td style="text-align: center;"><input type="text"  style="width:80%"
					name="cases/case[${flag}${index}]/case_contact_name"
					class="input_text required" maxlength=100 label="联系人姓名"
					value="<x:out select="$case/case_contact_name" />" />
				</td>
				<td style="text-align: center;"><input type="text" style="width:80%"
					name="cases/case[${flag}${index}]/case_contact_tel"
					class="input_text required" maxlength=100 label="联系人电话"
					value="<x:out select="$case/case_contact_tel" />" />
				</td>
				<td style="text-align: center;"><input type="text"  style="width:80%"
					name="cases/case[${flag}${index}]/case_content"
					class="input_text required" maxlength=100 label="联系人姓名"
					value="<x:out select="$case/case_content" />" />
				</td>
				<td align="center" nowrap><c:set var="start_date" scope="page"><x:out select="$case/start_date"/></c:set>
							<input  id="case_start_date_[${flag}${index}]" value="${start_date}" name="cases/case[${flag}${index}]/start_date" class="required date input_text" style="width:55px" label="服务时间" /> 
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		<script type="text/javascript">
						showAllDateTag("tblCases");
		</script>
	</tbody>
</table>
<br>

<table width="98%" align="center">
	<tr>
		<td><input class="button" name="cmdAddbefore" type=button
			value="添加" onclick="addNewRow('tblCases');showDateTag('tblCases');try{topObjectFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev"
			type=button value="上移" onclick="movePrev('tblCases','selCases')"> <input
			class="button" name="cmdMoveNext" type=button value="下移"
			onclick="moveNext('tblCases','selCases')"> <input
			class="button" name="cmddel" type=button value="删除"
			onclick="deleteSelectedRow('tblCases','服务成功案例表')"></td>
	</tr>
</table>


